home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_219 / mv / makefile < prev    next >
Makefile  |  1992-05-06  |  1KB  |  67 lines

  1. #
  2. # makefile for mv v1.0 - Unix-like move file utility
  3. #
  4. # Copyright 1989 Edwin Hoogerbeets
  5. #
  6. # This code may be freely redistributed as long as no charges other than
  7. # reasonable copying fees are levied for it.
  8. #
  9.  
  10. #
  11. # Set these to the executable names you want.
  12. #
  13. MVNAME=mv
  14. CPNAME=cp
  15. RMNAME=rm
  16.  
  17. # destination of the executables
  18. DESTDIR=c:
  19.  
  20. #
  21. # Set this to -DARP and -la32 to include arp wildcarding
  22. #
  23. ARP=-DARP
  24. ARPLIB=-la32
  25.  
  26. #
  27. # Set this to -g for sdb
  28. #
  29. LNDEBUG=
  30. #-g
  31.  
  32. #
  33. # Add -DDEBUG and -n for verbose debugging and sdb
  34. #
  35. DEBUG=
  36. #-n
  37. #-DDEBUG
  38.  
  39. CFLAGS=+L $(DEBUG) $(ARP) -DMVNAME="$(MVNAME)" -DCPNAME="$(CPNAME)" \
  40. -DRMNAME="$(RMNAME)"
  41.  
  42. #
  43. # do copy first, so we can use it to copy itself, instead of relinking!
  44. #
  45. all: $(CPNAME) $(RMNAME) $(MVNAME)
  46.  
  47. $(CPNAME): mv.o
  48.     ln $(LNDEBUG) mv.o $(ARPLIB) -lc32 -o $@
  49.  
  50. $(MVNAME): $(CPNAME)
  51.     $(CPNAME) $(CPNAME) $@
  52.  
  53. $(RMNAME): $(CPNAME)
  54.     $(CPNAME) $(CPNAME) $@
  55.  
  56. clean:
  57.     $(RMNAME) -f $(CPNAME) $(MVNAME) $(RMNAME) $(CPNAME).dbg \
  58. $(RMNAME).dbg $(MVNAME).dbg mv.o
  59.  
  60. mv.o: mv.c
  61.  
  62. install: all
  63.     $(CPNAME) -f $(CPNAME) $(RMNAME) $(MVNAME) $(DESTDIR)
  64.  
  65.  
  66.  
  67.